package com.Gwo.org.mapper;

import com.Gwo.org.domain.Department;
import com.Gwo.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    // 根据id查询
    Department findById(Long id);

    // 查询全部
    List<Department> findAll();

    // 添加
    void add(Department department);


    // 删除
    void delete(Long id);


    // 修改
    void update(Department department);


    // 分页查询
    List<Department> queryByPage(DepartmentQuery query);

    // 查询总条数
    Integer queryByCount(DepartmentQuery query);

    //批量删除
    void batchDelete(List<Long> ids);

}
